/* Headers */
h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.17em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: 0.83em;
}

h6 {
    font-size: 0.67em;
}

/* Emphasis */
em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

/* Lists */
ul > li{
    list-style-type: disc;
}

ol > li{
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5em;
    list-style: decimal;
}

/* Links */
a {
    color: #0366d6;
    /* typical link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Code */
pre {
    background-color: #f6f8fa;
    padding: 10px;
    border-radius: 5px;
    overflow: auto;
}

code {
    font-family: monospace;
    background-color: #f6f8fa;
    padding: 3px;
    border-radius: 3px;
}

/* Blockquotes */
blockquote {
    margin: 0;
    padding: 0.5em 1em;
    background-color: #f2f2f2;
    /* Light gray background */
    border-left: 5px solid #ccc;
    color: #333;
    /* Text color */
}

/* Example of basic table styling */
table {
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

input,
button,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
}

em {
    font-style: normal !important;
}

html,
body {
    height: 100%;
    font-family: "PingFang SC", BlinkMacSystemFont, Roboto, "Helvetica Neue",
        sans-serif;
}

img {
    max-width: 100%;
    /* 图片最大宽度为父元素的100% */
    height: auto;
    /* 高度自适应，避免图像拉伸变形 */
}

.el-message__icon {
    display: none;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top {
    height: 60px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.top .logo {
    margin-right: 20px;
}

#editor {
    height: 100%;
    display: block;
    border: none;
    width: 100%;
    padding: 10px;
}

section {
    height: 100%;
}

.main-body {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 10px;
}

.ctrl {
    flex-basis: 60px;
    display: flex;
    flex: 1;
    align-items: center;
}

.preview-wrapper {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    padding: 0;
    align-items: center;
    justify-content: center;
    display: flex;
    /* height: 100%; */
    overflow: scroll;
}

.main-section {
    display: flex;
    height: 100%;
}

.hint {
    opacity: 0.6;
    margin: 20px 0;
}

.preview {
    margin: 0 -20px;
    width: 375px;
    padding: 20px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

.preview ul,
.preview ol {
    padding-left: 40px !important;
}

.CodeMirror {
    height: 100%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    padding: 20px;
    width: 100%;
    font-family: "PingFang SC", BlinkMacSystemFont, Roboto, "Helvetica Neue",
        sans-serif;
}

/* ele ui */
.el-form-item {
    margin-bottom: 0px !important;
}

/*wechat code block*/
.rich_media_content .code-snippet *,
.rich_media_content .code-snippet__fix * {
    max-width: 1000% !important;
}

.code-snippet__fix {
    word-wrap: break-word !important;
    font-size: 14px;
    margin: 10px 0;
    display: block;
    color: #333;
    position: relative;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    display: flex;
    line-height: 26px;
}

.code-snippet__fix .code-snippet__line-index {
    counter-reset: line;
    flex-shrink: 0;
    height: 100%;
    padding: 1em;
    list-style-type: none;
}

.code-snippet__fix .code-snippet__line-index li {
    list-style-type: none;
    text-align: right;
}

.code-snippet__fix .code-snippet__line-index li::before {
    min-width: 1.5em;
    text-align: right;
    left: -2.5em;
    counter-increment: line;
    content: counter(line);
    display: inline;
    color: rgba(0, 0, 0, 0.15);
}

.code-snippet__fix pre {
    overflow-x: auto;
    padding: 1em;
    padding-left: 1em;
    padding-left: 0;
    white-space: normal;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.code-snippet__fix code {
    text-align: left;
    font-size: 14px;
    display: block;
    white-space: pre;
    display: flex;
    position: relative;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

:host>.hljs-center {
    text-align: center;
}

:host>.hljs-left {
    text-align: left;
}

:host>.hljs-right {
    text-align: right;
}

.article-detail p {
    line-height: 1.5;
    padding-bottom: 10px;
    font-size: 16px;
}

.article-detail a {
    font-weight: 600;
    padding-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 5px;
    color: #3c48ea;
}

.article-detail .h1-title {
    font-size: 24px;
    font-weight: 600;
}

.article-detail .h2-title {
    font-size: 20px;
    font-weight: 600;
}

.article-detail .h3-title {
    font-size: 18px;
    font-weight: 600;
}

.article-detail .main-body {
    font-size: 16px;
    font-weight: 400;
}